<?php
/**
 * Desc:
 * Auth: Shaoming Lu<lushao1012@163.com>
 * Date: 2018/4/10
 * Time: 13:34
 */
namespace echophp\exception;

use echophp\exception\HttpExceptionInterface;
use echophp\exception\RuntimeException;
class HttpException extends RuntimeException implements HttpExceptionInterface
{
    private $statusCode;
    private $headers;
    /**
     * Returns the status code.
     *
     * @return int An HTTP response status code
     */
    public function getStatusCode()
    {
        return $this->statusCode;
    }

    /**
     * Returns response headers.
     *
     * @return array Response headers
     */
    public function getHeaders()
    {
        return $this->headers;
    }

    /**
     * Set response headers.
     *
     * @param array $headers Response headers
     */
    public function setHeaders(array $headers)
    {
        $this->headers = $headers;
    }
}